﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp
{
    public class Dog : BaseObject, IAggressive
    {
        protected override string _typeName { get; } = "Dog";
        protected override double _maxHP { get; set; } = 150;

        public double AttackDistance { get; } = 10;

        public AttackResult Attack(double distance)
        {
            double attackValue = distance > AttackDistance ?
                                    0 :
                                    distance >= AttackDistance / 2 ? 10 : 5;
            return new AttackResult(AttackType.Physical, attackValue);
        }
    }
}
